package com.diandi.signature.manager.CAInfo;

import com.diandi.signature.bean.cainfo.SignatureCAInfo;
import com.diandi.signature.bean.passinfo.SignaturePassInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
* @author mwz
* @create 2017-08-23 13:11
* @version V1.0.0
* @description description
*/
public interface SignatureCAManager {


    /**
     * CA信息查询，通过编码信心
     * @param
     * @return
     */
    public SignatureCAInfo getSignatureCAInfo(String userId, String passCode);



    /**
     * 插入CA认证申请信息
     * @param params
     * @return
     */
    public SignatureCAInfo insertCAInfo(Map<String,String> params) throws Exception;


    Integer updateCustomerIdAndStatus(Map<String, Object> paramMap);


    /**
     * 保存业务端CA报文信息
     * @throws Exception
     */
    public boolean insertRcvPkgMsgData( Map<String,String> params) throws Exception;


    /**
     *  更新业务报文信息
     * @throws Exception
     */
    public boolean updateRcvPkgMsgData(  Map<String, String> requestMap,Map<String,String> params) throws Exception;


    /**
     *  保存通道报文信息
     * @throws Exception
     */
    public boolean insertRtnPkgMsgData(  Map<String,String> params) throws Exception;

    /**
     * 更新通道报文信息
     * @throws Exception
     */
    public boolean updateRtnPkgMsgData( Map<String, String> requestMap,Map<String,String> params) throws Exception;

    SignatureCAInfo getSignatureCAInfoByCode(Map<String, Object> paramMap);
}
